/**
 * Copyright (c) 2011-9-23 WKM and/or its affiliates. 
 * Use is subject to license terms.
 * All rights reserved.
 */
package org.wkm.task;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wkm.frame.MessageBox;
import org.wkm.task.file.DataReader;
import org.wkm.util.CalendarUtil;

/**
 * @author WKM Modification history 1.WKM -2011-9-23-Create File
 */
public class ShowFrame implements Job {
	
	private static Logger logger = LoggerFactory.getLogger(ShowFrame.class);
	private DataReader reader = DataReader.getInstance();

	private void run() {
		// TODO Auto-generated method stub
		MessageBox.showMessageBox(reader.getProperty("message.frame.title") + "-" +CalendarUtil.getDateTimeToday(), 
				reader.getProperty("timer.message"));
	}

	/**
	 * 自己定义任务的执行细节
	 */
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		// TODO Auto-generated method stub
		logger.info("启动提示窗口...");
		run();
		
	}
}
